mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
fix notification display in marketplace
This commit is contained in:
@@ -7,7 +7,7 @@ import { TuiNotification } from '@taiga-ui/core'
|
|||||||
template: `
|
template: `
|
||||||
<div
|
<div
|
||||||
tuiNotification
|
tuiNotification
|
||||||
[appearance]="status || 'warning'"
|
[appearance]="appearance"
|
||||||
icon=""
|
icon=""
|
||||||
class="notification-wrapper"
|
class="notification-wrapper"
|
||||||
>
|
>
|
||||||
@@ -78,4 +78,15 @@ export class MarketplaceNotificationComponent {
|
|||||||
|
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get appearance() {
|
||||||
|
switch (this.status) {
|
||||||
|
case 'success':
|
||||||
|
return 'positive'
|
||||||
|
case 'error':
|
||||||
|
return 'negative'
|
||||||
|
default:
|
||||||
|
return 'info'
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user