Skip to content

Commit 9c8baf8

Browse files
aayurtshantur
andauthored
Bugfix/tab close bug (#552)
#545 Bug fix #545 (comment) --------- Co-authored-by: Shantur Rathore <i@shantur.com>
1 parent 5c91c41 commit 9c8baf8

12 files changed

Lines changed: 22 additions & 10 deletions

File tree

packages/ui/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ const App: Component = () => {
389389

390390
if (!confirmed) return
391391

392-
await stopInstance(instanceId)
392+
stopInstance(instanceId)
393393
}
394394

395395
async function handleNewSession(instanceId: string) {

packages/ui/src/components/session-picker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const SessionPicker: Component<SessionPickerProps> = (props) => {
6767
}
6868

6969
async function handleCancel() {
70-
await stopInstance(props.instanceId)
70+
stopInstance(props.instanceId)
7171
props.onClose()
7272
}
7373

packages/ui/src/lib/i18n/messages/de/app.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export const appMessages = {
1212
"app.stopInstance.title": "Instanz stoppen",
1313
"app.stopInstance.confirmLabel": "Stoppen",
1414
"app.stopInstance.cancelLabel": "Weiterlaufen lassen",
15+
"app.stopInstance.toast.error": "Arbeitsbereich konnte nicht gestoppt werden.",
1516

1617
"emptyState.logoAlt": "CodeNomad Logo",
1718
"emptyState.brandTitle": "CodeNomad",

packages/ui/src/lib/i18n/messages/en/app.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export const appMessages = {
1212
"app.stopInstance.title": "Stop instance",
1313
"app.stopInstance.confirmLabel": "Stop",
1414
"app.stopInstance.cancelLabel": "Keep running",
15+
"app.stopInstance.toast.error": "Failed to stop workspace.",
1516

1617
"emptyState.logoAlt": "CodeNomad logo",
1718
"emptyState.brandTitle": "CodeNomad",

packages/ui/src/lib/i18n/messages/es/app.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export const appMessages = {
1212
"app.stopInstance.title": "Detener instancia",
1313
"app.stopInstance.confirmLabel": "Detener",
1414
"app.stopInstance.cancelLabel": "Seguir ejecutándose",
15+
"app.stopInstance.toast.error": "No se pudo detener el workspace.",
1516

1617
"emptyState.logoAlt": "Logo de CodeNomad",
1718
"emptyState.brandTitle": "CodeNomad",

packages/ui/src/lib/i18n/messages/fr/app.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export const appMessages = {
1212
"app.stopInstance.title": "Arrêter l'instance",
1313
"app.stopInstance.confirmLabel": "Arrêter",
1414
"app.stopInstance.cancelLabel": "Laisser tourner",
15+
"app.stopInstance.toast.error": "Impossible d'arrêter l'espace de travail.",
1516

1617
"emptyState.logoAlt": "Logo CodeNomad",
1718
"emptyState.brandTitle": "CodeNomad",

packages/ui/src/lib/i18n/messages/he/app.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export const appMessages = {
1212
"app.stopInstance.title": "עצור מופע",
1313
"app.stopInstance.confirmLabel": "עצור",
1414
"app.stopInstance.cancelLabel": "המשך להריץ",
15+
"app.stopInstance.toast.error": "עצירת סביבת העבודה נכשלה.",
1516

1617
"emptyState.logoAlt": "לוגו CodeNomad",
1718
"emptyState.brandTitle": "CodeNomad",

packages/ui/src/lib/i18n/messages/ja/app.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export const appMessages = {
1212
"app.stopInstance.title": "インスタンスを停止",
1313
"app.stopInstance.confirmLabel": "停止",
1414
"app.stopInstance.cancelLabel": "実行を続ける",
15+
"app.stopInstance.toast.error": "ワークスペースの停止に失敗しました。",
1516

1617
"emptyState.logoAlt": "CodeNomad ロゴ",
1718
"emptyState.brandTitle": "CodeNomad",

packages/ui/src/lib/i18n/messages/ne/app.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export const appMessages = {
1212
"app.stopInstance.title": "उदाहरण रोक्नुहोस्",
1313
"app.stopInstance.confirmLabel": "रोक्नुहोस्",
1414
"app.stopInstance.cancelLabel": "चालु राख्नुहोस्",
15+
"app.stopInstance.toast.error": "कार्यस्थान रोक्न असफल भयो।",
1516

1617
"emptyState.logoAlt": "CodeNomad लोगो",
1718
"emptyState.brandTitle": "CodeNomad",

packages/ui/src/lib/i18n/messages/ru/app.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export const appMessages = {
1212
"app.stopInstance.title": "Остановить экземпляр",
1313
"app.stopInstance.confirmLabel": "Остановить",
1414
"app.stopInstance.cancelLabel": "Оставить запущенным",
15+
"app.stopInstance.toast.error": "Не удалось остановить рабочее пространство.",
1516

1617
"emptyState.logoAlt": "Логотип CodeNomad",
1718
"emptyState.brandTitle": "CodeNomad",

0 commit comments

Comments
 (0)