Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- (GL #944) Replace buefy b-loading with c-loader from `csc-ui` and remove unused b-loading
- (GL #944) Replace buefy b-table with c-data-table from `csc-ui`
- (GL #944) Replace buefy dialogs with c-modal from `csc-ui`
- (GL #944) Replace buefy notifications with c-toasts from `csc-ui`

### Fixed

Expand Down
15 changes: 8 additions & 7 deletions swift_browser_ui_frontend/src/components/ContainerTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -384,13 +384,14 @@ export default {
},
confirmDelete: function (container, objects) {
if (objects > 0) {
this.$buefy.notification.open({
message: this.$t("message.container_ops.deleteNote"),
type: "is-danger",
position: "is-top-right",
duration: 30000,
hasIcon: true,
});
document.querySelector("#container-error-toasts").addToast(
{
progress: false,
type: "error",
duration: 30000,
message: this.$t("message.container_ops.deleteNote"),
},
);
this.$router.push(
this.$route.params.project
+ "/"
Expand Down
21 changes: 14 additions & 7 deletions swift_browser_ui_frontend/src/components/SearchBox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@
</div>
</template>
</b-autocomplete>
<c-toasts
id="searchbox-toasts"
data-testid="searchbox-toasts"
vertical="top"
horizontal="right"
/>
</div>
</template>

Expand Down Expand Up @@ -199,13 +205,14 @@ export default {
) &&
ojbCount >= 10000
) {
this.$buefy.notification.open({
message: this.$t("message.search.buildingIndex"),
type: "is-info",
position: "is-top-right",
duration: 20000,
hasIcon: true,
});
document.querySelector("#searchbox-toasts").addToast(
{
duration: 20000,
type: "info",
progress: false,
message: this.$t("message.search.buildingIndex"),
},
);
this.$store.state.db.preferences
.where(":id")
.equals(1)
Expand Down
5 changes: 5 additions & 0 deletions swift_browser_ui_frontend/src/pages/BrowserPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@
</p>
</div>
</c-toasts>
<c-toasts
id="container-error-toasts"
vertical="top"
horizontal="right"
/>
</div>
<CFooter />
</div>
Expand Down
26 changes: 17 additions & 9 deletions swift_browser_ui_frontend/src/views/Tokens.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,14 @@
hide-footer
/>
<c-toasts
id="token-toasts"
data-testid="token-toasts"
id="add-token-toasts"
data-testid="add-token-toasts"
vertical="top"
horizontal="right"
/>
<c-toasts
id="copy-token-toasts"
data-testid="copy-token-toasts"
/>
</div>
</template>
Expand Down Expand Up @@ -150,12 +156,14 @@ export default {
identifier,
).then((ret) => {
this.latest = ret;
this.$buefy.notification.open({
message: this.$t("message.tokens.copyToken"),
duration: 3600000,
type: "is-success",
queue: false,
});
document.querySelector("#add-token-toasts").addToast(
{
duration: 3600000,
type: "success",
progress: false,
message: this.$t("message.tokens.copyToken"),
},
);
this.getTokens();
});
},
Expand All @@ -168,7 +176,7 @@ export default {
this.latest,
).then(() => {
this.copied = true;
document.querySelector("#token-toasts").addToast(
document.querySelector("#copy-token-toasts").addToast(
{
duration: 6000,
type: "success",
Expand Down