mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FEATURE: allows to define a dissmiss duration on global notices (#8715)
This commit also adds more documentation to various options and defines a 1 week duration for IE global notice dismiss duration.
This commit is contained in:
parent
ec1aeb8a55
commit
f4744193bd
2 changed files with 30 additions and 5 deletions
|
@ -8,7 +8,7 @@ function initializeInternetExplorerDeprecation(api) {
|
|||
api.addGlobalNotice(
|
||||
I18n.t("discourse_internet_explorer.deprecation_warning"),
|
||||
"deprecate-internet-explorer",
|
||||
{ dismissable: true }
|
||||
{ dismissable: true, dismissDuration: moment.duration(1, "week") }
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue