Skip to content

Commit

Permalink
show correct buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
bwp91 committed Nov 10, 2023
1 parent 347e5e9 commit c653088
Show file tree
Hide file tree
Showing 28 changed files with 64 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,22 @@ <h3 class="text-center primary-text" [translate]="'platform.version.title_servic
</h3>
<p class="text-center grey-text" translate="plugins.manage.message_thanks_for_updating"
[translateParams]="{ pluginName: pluginName, targetVersion: targetVersion }"></p>
<p *ngIf="!['homebridge', 'homebridge-config-ui-x'].includes(pluginName)" class="text-center grey-text"
[translate]="'plugins.manage.message_thanks_for_updating_restart'">
Please restart Homebridge for the changes to apply. Alternatively, if you have this plugin running in child
bridges, you can close this modal and restart these instead.
<p *ngIf="['homebridge', 'homebridge-config-ui-x'].includes(pluginName) || childBridges.length === 0" class="text-center grey-text"
[translate]="'plugins.manage.message_thanks_for_updating_restart'">
Please restart Homebridge for the changes to apply.
</p>
<p *ngIf="!['homebridge', 'homebridge-config-ui-x'].includes(pluginName) && childBridges.length > 0" class="text-center grey-text"
[translate]="'plugins.manage.message_thanks_for_updating_restart_child_bridges'">
Please restart the plugin's child bridges for the changes to apply.
</p>
<div class="text-center">
<button type="button" class="btn btn-primary"
*ngIf="!['homebridge', 'homebridge-config-ui-x'].includes(pluginName) && childBridges.length > 0"
(click)="onRestartChildBridgeClick(item._bridge?.username)"
(click)="onRestartChildBridgeClick()"
[translate]="'plugins.manage.child_bridge_button_restart_now'">Restart Child Bridges</button>
<button type="button" class="btn btn-primary" (click)="onRestartHomebridgeClick()"
<button type="button" class="btn btn-primary"
*ngIf="['homebridge', 'homebridge-config-ui-x'].includes(pluginName) || childBridges.length === 0" (click)="onRestartHomebridgeClick()"
[translate]="'plugins.manage.button_restart_now'">Restart Homebridge</button>
<button *ngIf="!['homebridge', 'homebridge-config-ui-x'].includes(pluginName)" type="button"
class="btn btn-primary" data-dismiss="modal" (click)="activeModal.dismiss('Cross click')"
[translate]="'form.button_close'">Close</button>
</div>
<hr>
</div>
Expand Down
3 changes: 2 additions & 1 deletion ui/src/i18n/bg.json
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@
"plugins.manage.message_install_alternate_version": "Install Alternate Version",
"plugins.manage.message_select_version_to_install": "Select the version to install",
"plugins.manage.message_thanks_for_updating": "Благодарим, че инсталирате последната версия на {{ pluginName }}.",
"plugins.manage.message_thanks_for_updating_restart": "Please restart Homebridge for the changes to apply. Alternatively, if you have this plugin running in child bridges, you can close this modal and restart these instead.",
"plugins.manage.message_thanks_for_updating_restart": "Please restart Homebridge for the changes to apply.",
"plugins.manage.message_thanks_for_updating_restart_child_bridges": "Please restart the plugin's child bridges for the changes to apply.",
"plugins.manage.message_uninstall_remove_config_required": "If you are permanently removing this plugin, make sure you remove any config for this plugin in the config.json before restarting Homebridge.",
"plugins.manage.message_uninstall_remove_confirmation": "Are you sure you want to uninstall {{ pluginName }}?",
"plugins.manage.message_uninstall_remove_plugin_config": "Remove Plugin Config?",
Expand Down
3 changes: 2 additions & 1 deletion ui/src/i18n/ca.json
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@
"plugins.manage.message_install_alternate_version": "Instal·lar versió anterior",
"plugins.manage.message_select_version_to_install": "Tria la versió que vols instal·lar",
"plugins.manage.message_thanks_for_updating": "Gràcies per instal·lar la versió {{ targetVersion }} de {{ pluginName }}.",
"plugins.manage.message_thanks_for_updating_restart": "Reinici Homebridge perquè s'apliquin els canvis. Alternativament, si tens aquest plugin executant-se en ponts fills, pots tancar aquest modal i reiniciar-los.",
"plugins.manage.message_thanks_for_updating_restart": "Reinici Homebridge perquè s'apliquin els canvis",
"plugins.manage.message_thanks_for_updating_restart_child_bridges": "Please restart the plugin's child bridges for the changes to apply.",
"plugins.manage.message_uninstall_remove_config_required": "Si eliminaràs aquest plugin de forma permanent, assegura't de treure qualsevol configuració d'aquest plugin a l'arxiu config.json abans de reiniciar Homebridge.",
"plugins.manage.message_uninstall_remove_confirmation": "Estàs segur que vols desinstal·lar {{ pluginName }}?",
"plugins.manage.message_uninstall_remove_plugin_config": "Eliminar la configuració del plugin?",
Expand Down
3 changes: 2 additions & 1 deletion ui/src/i18n/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@
"plugins.manage.message_install_alternate_version": "Instalovat předešlou verzi",
"plugins.manage.message_select_version_to_install": "Vyberte verzi k instalaci",
"plugins.manage.message_thanks_for_updating": "Děkujeme, že jste nainstalovali nejnovější verzi rozhraní {{ pluginName }}.",
"plugins.manage.message_thanks_for_updating_restart": "Please restart Homebridge for the changes to apply. Alternatively, if you have this plugin running in child bridges, you can close this modal and restart these instead.",
"plugins.manage.message_thanks_for_updating_restart": "Please restart Homebridge for the changes to apply.",
"plugins.manage.message_thanks_for_updating_restart_child_bridges": "Please restart the plugin's child bridges for the changes to apply.",
"plugins.manage.message_uninstall_remove_config_required": "Pokud tento plugin trvale odstraňujete, ujistěte se, že před restartováním aplikace Homebridge odeberete i jeho konfiguraci v souboru config.json.",
"plugins.manage.message_uninstall_remove_confirmation": "Opravdu chcete odinstalovat plugin {{ pluginName }}?",
"plugins.manage.message_uninstall_remove_plugin_config": "Odebrat konfiguraci pluginu?",
Expand Down
3 changes: 2 additions & 1 deletion ui/src/i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@
"plugins.manage.message_install_alternate_version": "Vorherige Version installieren",
"plugins.manage.message_select_version_to_install": "Zu installierende Version auswählen",
"plugins.manage.message_thanks_for_updating": "Vielen Dank für die Installation der {{ targetVersion }} Version von {{ pluginName }}.",
"plugins.manage.message_thanks_for_updating_restart": "Bitte starte Homebridge neu, damit die Änderungen wirksam werden. Wenn du dieses Plugin in Unter-Bridges ausführst, kannst du alternativ diesen Hinweis auch schließen und stattdessen diese neu starten.",
"plugins.manage.message_thanks_for_updating_restart": "Bitte starte Homebridge neu, damit die Änderungen wirksam werden.",
"plugins.manage.message_thanks_for_updating_restart_child_bridges": "Please restart the plugin's child bridges for the changes to apply.",
"plugins.manage.message_uninstall_remove_config_required": "Stelle sicher, dass wenn du dieses Plugin dauerhaft entfernst, jede Konfiguration für dieses Plugin in der config.json entfernt hast, bevor du Homebridge neu startest.",
"plugins.manage.message_uninstall_remove_confirmation": "Bist du sicher, dass du {{ pluginName }} entfernen möchtest?",
"plugins.manage.message_uninstall_remove_plugin_config": "Plugin Konfiguration entfernen?",
Expand Down
3 changes: 2 additions & 1 deletion ui/src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@
"plugins.manage.message_install_alternate_version": "Install Alternate Version",
"plugins.manage.message_select_version_to_install": "Select the version to install",
"plugins.manage.message_thanks_for_updating": "Thanks for installing the {{ targetVersion }} version of {{ pluginName }}.",
"plugins.manage.message_thanks_for_updating_restart": "Please restart Homebridge for the changes to apply. Alternatively, if you have this plugin running in child bridges, you can close this modal and restart these instead.",
"plugins.manage.message_thanks_for_updating_restart": "Please restart Homebridge for the changes to apply.",
"plugins.manage.message_thanks_for_updating_restart_child_bridges": "Please restart the plugin's child bridges for the changes to apply.",
"plugins.manage.message_uninstall_remove_config_required": "If you are permanently removing this plugin, make sure you remove any config for this plugin in the config.json before restarting Homebridge.",
"plugins.manage.message_uninstall_remove_confirmation": "Are you sure you want to uninstall {{ pluginName }}?",
"plugins.manage.message_uninstall_remove_plugin_config": "Remove Plugin Config?",
Expand Down
3 changes: 2 additions & 1 deletion ui/src/i18n/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@
"plugins.manage.message_install_alternate_version": "Instalar versión alterna",
"plugins.manage.message_select_version_to_install": "Elige la versión para instalar",
"plugins.manage.message_thanks_for_updating": "Gracias por instalar la última versión de {{ pluginName }}.",
"plugins.manage.message_thanks_for_updating_restart": "Por favor, reinicia Homebridge para aplicar los cambios. Sin embargo, si ejecutas este plugin como un puente hijo, puedes cerrar esta ventana y reiniciar dicho puente.",
"plugins.manage.message_thanks_for_updating_restart": "Por favor, reinicia Homebridge para aplicar los cambios.",
"plugins.manage.message_thanks_for_updating_restart_child_bridges": "Please restart the plugin's child bridges for the changes to apply.",
"plugins.manage.message_uninstall_remove_config_required": "Si eliminarás este plugin de forma permanente, asegúrate de quitar cualquier configuración de este plugin en el archivo config.json antes de reiniciar Homebridge.",
"plugins.manage.message_uninstall_remove_confirmation": "¿Estás seguro que deseas desinstalar {{ pluginName }}?",
"plugins.manage.message_uninstall_remove_plugin_config": "¿Eliminar la Configuración del Plugin?",
Expand Down
3 changes: 2 additions & 1 deletion ui/src/i18n/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@
"plugins.manage.message_install_alternate_version": "Installer une autre Version",
"plugins.manage.message_select_version_to_install": "Sélectionner la version à installer",
"plugins.manage.message_thanks_for_updating": "Merci d'avoir installé la dernière version d'{{ pluginName }}.",
"plugins.manage.message_thanks_for_updating_restart": "Please restart Homebridge for the changes to apply. Alternatively, if you have this plugin running in child bridges, you can close this modal and restart these instead.",
"plugins.manage.message_thanks_for_updating_restart": "Please restart Homebridge for the changes to apply.",
"plugins.manage.message_thanks_for_updating_restart_child_bridges": "Please restart the plugin's child bridges for the changes to apply.",
"plugins.manage.message_uninstall_remove_config_required": "Si vous désinstallez de manière permanente ce plugin, prenez gare à supprimer toute configuration liée à ce plugin dans config.json avant de redémarrer Homebridge.",
"plugins.manage.message_uninstall_remove_confirmation": "Etes-vous sûr de vouloir désinstaller {{ pluginName }} ?",
"plugins.manage.message_uninstall_remove_plugin_config": "Supprimer la configuration du Plugin ?",
Expand Down
3 changes: 2 additions & 1 deletion ui/src/i18n/he.json
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@
"plugins.manage.message_install_alternate_version": "התקן גרסא קודמת",
"plugins.manage.message_select_version_to_install": "בחר גרסה להתקנה",
"plugins.manage.message_thanks_for_updating": "Thanks for installing the {{ targetVersion }} version of {{ pluginName }}.",
"plugins.manage.message_thanks_for_updating_restart": "Please restart Homebridge for the changes to apply. Alternatively, if you have this plugin running in child bridges, you can close this modal and restart these instead.",
"plugins.manage.message_thanks_for_updating_restart": "Please restart Homebridge for the changes to apply.",
"plugins.manage.message_thanks_for_updating_restart_child_bridges": "Please restart the plugin's child bridges for the changes to apply.",
"plugins.manage.message_uninstall_remove_config_required": "If you are permanently removing this plugin, make sure you remove any config for this plugin in the config.json before restarting Homebridge.",
"plugins.manage.message_uninstall_remove_confirmation": "האם אתה בטוח שברצונך להסיר את {{ pluginName }}?",
"plugins.manage.message_uninstall_remove_plugin_config": "הסר הגדרות תוסף",
Expand Down
3 changes: 2 additions & 1 deletion ui/src/i18n/hu.json
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@
"plugins.manage.message_install_alternate_version": "Install Alternate Version",
"plugins.manage.message_select_version_to_install": "Select the version to install",
"plugins.manage.message_thanks_for_updating": "Köszönjük, hogy telepítette a {{ pluginName }} legfrissebb verzióját.",
"plugins.manage.message_thanks_for_updating_restart": "Please restart Homebridge for the changes to apply. Alternatively, if you have this plugin running in child bridges, you can close this modal and restart these instead.",
"plugins.manage.message_thanks_for_updating_restart": "Please restart Homebridge for the changes to apply.",
"plugins.manage.message_thanks_for_updating_restart_child_bridges": "Please restart the plugin's child bridges for the changes to apply.",
"plugins.manage.message_uninstall_remove_config_required": "If you are permanently removing this plugin, make sure you remove any config for this plugin in the config.json before restarting Homebridge.",
"plugins.manage.message_uninstall_remove_confirmation": "Are you sure you want to uninstall {{ pluginName }}?",
"plugins.manage.message_uninstall_remove_plugin_config": "Remove Plugin Config?",
Expand Down
3 changes: 2 additions & 1 deletion ui/src/i18n/id.json
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@
"plugins.manage.message_install_alternate_version": "Pasang Versi Sebelumnya",
"plugins.manage.message_select_version_to_install": "Pilih versi yang akan diinstal",
"plugins.manage.message_thanks_for_updating": "Terima kasih telah menginstal versi terbaru dari {{ pluginName }} 😘.",
"plugins.manage.message_thanks_for_updating_restart": "Please restart Homebridge for the changes to apply. Alternatively, if you have this plugin running in child bridges, you can close this modal and restart these instead.",
"plugins.manage.message_thanks_for_updating_restart": "Please restart Homebridge for the changes to apply.",
"plugins.manage.message_thanks_for_updating_restart_child_bridges": "Please restart the plugin's child bridges for the changes to apply.",
"plugins.manage.message_uninstall_remove_config_required": "Jika anda menghapus plugin ini secara permanen, pastikan anda menghapus konfigurasi untuk plugin ini di config.json sebelum mengulang kembali Homebridge.",
"plugins.manage.message_uninstall_remove_confirmation": "Anda yakin ingin mencopot pemasangan {{ pluginName }}?",
"plugins.manage.message_uninstall_remove_plugin_config": "Hapus Konfigurasi Plugin?",
Expand Down
3 changes: 2 additions & 1 deletion ui/src/i18n/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@
"plugins.manage.message_install_alternate_version": "Installa la versione precedente",
"plugins.manage.message_select_version_to_install": "Scegli la versione da installare",
"plugins.manage.message_thanks_for_updating": "Grazie per aver installato l'ultima versione di {{ pluginName }}.",
"plugins.manage.message_thanks_for_updating_restart": "Please restart Homebridge for the changes to apply. Alternatively, if you have this plugin running in child bridges, you can close this modal and restart these instead.",
"plugins.manage.message_thanks_for_updating_restart": "Please restart Homebridge for the changes to apply.",
"plugins.manage.message_thanks_for_updating_restart_child_bridges": "Please restart the plugin's child bridges for the changes to apply.",
"plugins.manage.message_uninstall_remove_config_required": "Se si sta disinstallando definitivamente questo plugin, assicurarsi di rimuovere la configurazione di questo plugin da config.json prima di riavviare Homebridge.",
"plugins.manage.message_uninstall_remove_confirmation": "Sei sicuro di vole disinstallare {{ pluginName }}?",
"plugins.manage.message_uninstall_remove_plugin_config": "Rimuovere la configurazione del plugin?",
Expand Down
3 changes: 2 additions & 1 deletion ui/src/i18n/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@
"plugins.manage.message_install_alternate_version": "以前のバージョンをインストール",
"plugins.manage.message_select_version_to_install": "インストールするバージョンを選択してください",
"plugins.manage.message_thanks_for_updating": "{{ pluginName }} の最新バージョンをインストールしていただきありがとうございます",
"plugins.manage.message_thanks_for_updating_restart": "Please restart Homebridge for the changes to apply. Alternatively, if you have this plugin running in child bridges, you can close this modal and restart these instead.",
"plugins.manage.message_thanks_for_updating_restart": "Please restart Homebridge for the changes to apply.",
"plugins.manage.message_thanks_for_updating_restart_child_bridges": "Please restart the plugin's child bridges for the changes to apply.",
"plugins.manage.message_uninstall_remove_config_required": "このプラグインを永久に削除する場合は、Homebridgeを再起動する前にConfig.jsonでこのプラグインの設定を削除してください。",
"plugins.manage.message_uninstall_remove_confirmation": "本当にプラグイン {{ pluginName }} をアンインストールしますか?",
"plugins.manage.message_uninstall_remove_plugin_config": "プラグインコンフィグを削除しますか?",
Expand Down
3 changes: 2 additions & 1 deletion ui/src/i18n/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@
"plugins.manage.message_install_alternate_version": "이전 버전 설치",
"plugins.manage.message_select_version_to_install": "설치할 버전을 선택하세요",
"plugins.manage.message_thanks_for_updating": "{{ pluginName }} 최신버전을 설치해주셔서 감사합니다.",
"plugins.manage.message_thanks_for_updating_restart": "Please restart Homebridge for the changes to apply. Alternatively, if you have this plugin running in child bridges, you can close this modal and restart these instead.",
"plugins.manage.message_thanks_for_updating_restart": "Please restart Homebridge for the changes to apply.",
"plugins.manage.message_thanks_for_updating_restart_child_bridges": "Please restart the plugin's child bridges for the changes to apply.",
"plugins.manage.message_uninstall_remove_config_required": "이 플러그인을 영구적으로 삭제하는 경우, Homebrdige를 재시작 하기 전에 config.json에서 이 플러그인의 Config 정보가 제거되었는지 확인해주세요.",
"plugins.manage.message_uninstall_remove_confirmation": "{{ pluginName }} 플러그인을 제거하시겠습니까?",
"plugins.manage.message_uninstall_remove_plugin_config": "플러그인의 Config 정보 제거",
Expand Down
Loading

0 comments on commit c653088

Please sign in to comment.