mirror of
https://github.com/portainer/portainer.git
synced 2025-08-05 05:45:22 +02:00
feat(api): add support for an externally fetched title for motd (#2755)
* feat(api): add support for an externally fetched title for motd * refactor(api): gofmt motd.go * refactor(api): update go comment
This commit is contained in:
parent
e2a17480af
commit
2b31f489d9
4 changed files with 12 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
|||
function MotdViewModel(data) {
|
||||
this.Title = data.Title;
|
||||
this.Message = data.Message;
|
||||
this.Hash = data.Hash;
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<information-panel
|
||||
ng-if="motd && motd.Message !== '' && applicationState.UI.dismissedInfoHash !== motd.Hash"
|
||||
title-text="Important message"
|
||||
title-text="{{ motd.Title }}"
|
||||
dismiss-action="dismissImportantInformation(motd.Hash)">
|
||||
<span class="text-muted">
|
||||
<p ng-bind-html="motd.Message"></p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue