mirror of
https://github.com/unraid/api.git
synced 2026-01-03 15:09:48 -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>
|
</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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ export default class DefaultPageLayoutModification extends FileModification {
|
|||||||
if (source.includes('unraid-toaster')) {
|
if (source.includes('unraid-toaster')) {
|
||||||
return source;
|
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>`);
|
return source.replace(/<\/body>/, `${insertion}\n</body>`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -76,6 +76,6 @@ Index: /usr/local/emhttp/plugins/dynamix/include/DefaultPageLayout.php
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user