fix(web): name of toaster component

changed `unraid-toaster` to `uui-toaster`
This commit is contained in:
Pujit Mehrotra
2025-02-19 10:43:59 -05:00
committed by Pujit Mehrotra
parent 19208e5fab
commit 93980f929d
3 changed files with 3 additions and 3 deletions

View File

@@ -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>

View File

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

View File

@@ -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>