Skip to content

Commit

Permalink
fix import, add descriptor
Browse files Browse the repository at this point in the history
  • Loading branch information
elan-tbx committed Apr 9, 2024
1 parent 3fe98a7 commit a68f0d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions libs/blocks/locui/actions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
startSync,
startProject,
getServiceUpdates,
rolloutLang,
postReqLang,
} from '../utils/miloc.js';
import { signal } from '../../../deps/htm-preact.js';
import Modal from './modal.js';
Expand Down Expand Up @@ -222,7 +222,7 @@ export function showRollout() {
export async function rolloutAll(e, reroll) {
showRolloutOptions.value = false;
allowRollout.value = false;
await rolloutLang('all', reroll);
await postReqLang('all', reroll);
}

export async function cancelLocProject() {
Expand Down
2 changes: 1 addition & 1 deletion libs/blocks/locui/langs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export async function rollout(item, idx) {
const reroll = item.status === 'completed';

// Update the UI immediate instead of waiting on polling
languages.value[idx].status = 'rolling-out';
languages.value[idx].status = item.status === 'error' ? 'retrying' : 'rolling-out';
languages.value[idx].done = 0;
languages.value = [...languages.value];

Expand Down

0 comments on commit a68f0d0

Please sign in to comment.