mirror of
https://github.com/unraid/api.git
synced 2025-12-31 13:39:52 -06:00
fix(web): name of toaster component
changed `unraid-toaster` to `uui-toaster`
This commit is contained in:
committed by
Pujit Mehrotra
parent
19208e5fab
commit
93980f929d
@@ -1216,6 +1216,6 @@ $('body').on('click','a,.ca_href', function(e) {
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<unraid-toaster rich-colors close-button position="<?= ($notify['position'] === 'center') ? 'top-center' : $notify['position'] ?>"></unraid-toaster>
|
||||
<uui-toaster rich-colors close-button position="<?= ($notify['position'] === 'center') ? 'top-center' : $notify['position'] ?>"></uui-toaster>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -16,7 +16,7 @@ export default class DefaultPageLayoutModification extends FileModification {
|
||||
if (source.includes('unraid-toaster')) {
|
||||
return source;
|
||||
}
|
||||
const insertion = `<unraid-toaster rich-colors close-button position="<?= ($notify['position'] === 'center') ? 'top-center' : $notify['position'] ?>"></unraid-toaster>`;
|
||||
const insertion = `<uui-toaster rich-colors close-button position="<?= ($notify['position'] === 'center') ? 'top-center' : $notify['position'] ?>"></uui-toaster>`;
|
||||
return source.replace(/<\/body>/, `${insertion}\n</body>`);
|
||||
}
|
||||
|
||||
|
||||
@@ -76,6 +76,6 @@ Index: /usr/local/emhttp/plugins/dynamix/include/DefaultPageLayout.php
|
||||
}
|
||||
});
|
||||
</script>
|
||||
+<unraid-toaster rich-colors close-button position="<?= ($notify['position'] === 'center') ? 'top-center' : $notify['position'] ?>"></unraid-toaster>
|
||||
+<uui-toaster rich-colors close-button position="<?= ($notify['position'] === 'center') ? 'top-center' : $notify['position'] ?>"></uui-toaster>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user