diff --git a/CHANGELOG.md b/CHANGELOG.md index 64f5b0f6d..a1b0af463 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -62,6 +62,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - (GH #1007) Create new Taginput component to replace Buefy's taginput component - (GH #1009) Replace buefy toasts with c-toasts from `csc-ui` - (GH #1014) Replace buefy snackbars with custom c-toasts from `csc-ui` +- (GL #944) Replace buefy b-input with c-text-field from `csc-ui` +- (GL #944) Replace buefy b-button with c-button from `csc-ui` +- (GL #944) Replace buefy b-select with c-select from `csc-ui` +- (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` ### Fixed diff --git a/swift_browser_ui_frontend/src/common/store.js b/swift_browser_ui_frontend/src/common/store.js index 8f62eda2a..c04a68570 100644 --- a/swift_browser_ui_frontend/src/common/store.js +++ b/swift_browser_ui_frontend/src/common/store.js @@ -23,8 +23,6 @@ const store = new Vuex.Store({ active: {}, uname: "", multipleProjects: false, - isLoading: false, - isFullPage: true, objectCache: [], // Only for shared objects langs: [ { ph: "In English", value: "en" }, @@ -59,9 +57,6 @@ const store = new Vuex.Store({ uploadAbort: undefined, }, mutations: { - loading(state, payload) { - state.isLoading = payload; - }, updateObjects(state, objects) { // Update object cache with the new object listing. state.objectCache = [...objects]; @@ -86,9 +81,6 @@ const store = new Vuex.Store({ // Update the username in store state.uname = newUname; }, - setLoading(state, newValue) { - state.isLoading = newValue; - }, setSharingClient(state, newClient) { state.client = newClient; }, @@ -248,24 +240,18 @@ const store = new Vuex.Store({ }, actions: { updateContainers: async function ( - { state, commit, dispatch }, + { state, dispatch }, { projectID, signal }, ) { const existingContainers = await state.db.containers .where({ projectID }) .toArray(); - if (existingContainers.length === 0) { - commit("loading", true); - } let containers; let marker = ""; let newContainers = []; do { containers = []; - containers = await getContainers(projectID, marker).catch(() => { - commit("loading", false); - }); - commit("loading", false); + containers = await getContainers(projectID, marker).catch(() => {}); if (containers.length > 0) { containers.forEach(cont => { cont.tokens = tokenize(cont.name); @@ -494,7 +480,6 @@ const store = new Vuex.Store({ { commit, dispatch }, { project, owner, container, signal }, ) { - commit("loading", true); let sharedObjects = []; let marker = ""; let objects = []; @@ -507,7 +492,6 @@ const store = new Vuex.Store({ true, owner, ).catch(() => { - commit("loading", false); commit("updateObjects", []); }); @@ -516,7 +500,6 @@ const store = new Vuex.Store({ marker = objects[objects.length - 1].name; } } while (objects.length > 0); - commit("loading", false); commit("updateObjects", sharedObjects); dispatch("updateObjectTags", { projectID: project, diff --git a/swift_browser_ui_frontend/src/components/CopyFolderModal.vue b/swift_browser_ui_frontend/src/components/CopyFolderModal.vue index 880ead0e2..a502202b1 100644 --- a/swift_browser_ui_frontend/src/components/CopyFolderModal.vue +++ b/swift_browser_ui_frontend/src/components/CopyFolderModal.vue @@ -15,23 +15,17 @@ {{ $t("message.replicate.destinationExists") }}

- - - + name="foldername" + :loading="loadingFoldername" + /> c-button { margin: 0; } - \ No newline at end of file + diff --git a/swift_browser_ui_frontend/src/components/CreateFolderModal.vue b/swift_browser_ui_frontend/src/components/CreateFolderModal.vue index c3eecd652..26324c92a 100644 --- a/swift_browser_ui_frontend/src/components/CreateFolderModal.vue +++ b/swift_browser_ui_frontend/src/components/CreateFolderModal.vue @@ -17,19 +17,14 @@

{{ $t("message.container_ops.norename") }}

- - - + name="foldername" + aria-required="true" + data-testid="folder-name" + />