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:
Joffrey JAFFEUX
2020-01-15 09:02:28 +01:00
committed by GitHub
parent ec1aeb8a55
commit f4744193bd
2 changed files with 30 additions and 5 deletions

View File

@ -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") }
);
}
}