Skip to content
This repository was archived by the owner on May 29, 2026. It is now read-only.
Merged
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
13 changes: 13 additions & 0 deletions src/modals/BulkSyncDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,11 @@ export default defineComponent({
},

watch: {
/**
* Watch the open prop to reset sync state when dialog opens
*
* @spec openspec/changes/retrofit-2026-05-26-fe-settings-ui/tasks.md#task-8
*/
open(value) {
if (value === true) {
this.syncCompleted = false
Expand All @@ -210,6 +215,8 @@ export default defineComponent({
methods: {
/**
* Close the bulk sync dialog
*
* @spec openspec/changes/retrofit-2026-05-26-fe-settings-ui/tasks.md#task-8
*/
closeBulkSyncDialog() {
this.syncCompleted = false
Expand All @@ -221,6 +228,8 @@ export default defineComponent({

/**
* Reset sync state
*
* @spec openspec/changes/retrofit-2026-05-26-fe-settings-ui/tasks.md#task-8
*/
resetSyncState() {
this.syncProgress = {
Expand All @@ -239,6 +248,8 @@ export default defineComponent({

/**
* Start the bulk sync process
*
* @spec openspec/changes/retrofit-2026-05-26-fe-settings-ui/tasks.md#task-8
*/
async startBulkSync() {
this.bulkSyncLoading = true
Expand Down Expand Up @@ -268,7 +279,9 @@ export default defineComponent({

/**
* Perform the bulk sync API call
*
* @return {Promise} API response
* @spec openspec/changes/retrofit-2026-05-26-fe-settings-ui/tasks.md#task-8
*/
async performBulkSync() {
const response = await fetch('/index.php/apps/softwarecatalog/api/bulk-sync-standards', {
Expand Down