Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5494a4a26b | ||
|
|
174d5440f5 | ||
|
|
62745172dd |
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "court-pilot",
|
"name": "court-pilot",
|
||||||
"version": "1.1.1",
|
"version": "1.1.2",
|
||||||
"author": "Ionic Framework",
|
"author": "Ionic Framework",
|
||||||
"homepage": "https://ionicframework.com/",
|
"homepage": "https://ionicframework.com/",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"$schema": "../node_modules/@tauri-apps/cli/config.schema.json",
|
"$schema": "../node_modules/@tauri-apps/cli/config.schema.json",
|
||||||
"productName": "court-pilot",
|
"productName": "court-pilot",
|
||||||
"version": "1.1.1",
|
"version": "1.1.2",
|
||||||
"identifier": "com.courtpilot.dev",
|
"identifier": "com.courtpilot.dev",
|
||||||
"build": {
|
"build": {
|
||||||
"frontendDist": "../www",
|
"frontendDist": "../www",
|
||||||
@@ -15,10 +15,11 @@
|
|||||||
"minHeight": 600,
|
"minHeight": 600,
|
||||||
"minWidth": 800,
|
"minWidth": 800,
|
||||||
"title": "Court Pilot",
|
"title": "Court Pilot",
|
||||||
"width": 1366,
|
"width": 800,
|
||||||
"height": 768,
|
"height": 600,
|
||||||
"resizable": true,
|
"resizable": true,
|
||||||
"fullscreen": true
|
"fullscreen": false,
|
||||||
|
"center": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"security": {
|
"security": {
|
||||||
|
|||||||
@@ -41,10 +41,28 @@ export class AppComponent {
|
|||||||
text: 'OK',
|
text: 'OK',
|
||||||
handler: async () => {
|
handler: async () => {
|
||||||
try {
|
try {
|
||||||
|
// Show loading message
|
||||||
|
alert.message =
|
||||||
|
this.translationService.translate('updateDownloading');
|
||||||
|
|
||||||
|
// Disable the button while updating
|
||||||
|
const okButton = alert.buttons[0];
|
||||||
|
if (typeof okButton !== 'string') {
|
||||||
|
okButton.htmlAttributes = { disabled: true };
|
||||||
|
}
|
||||||
|
|
||||||
await update.downloadAndInstall();
|
await update.downloadAndInstall();
|
||||||
await relaunch();
|
await relaunch();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Failed to install update:', error);
|
console.error('Failed to install update:', error);
|
||||||
|
alert.message =
|
||||||
|
this.translationService.translate('updateFailed');
|
||||||
|
|
||||||
|
const okButton = alert.buttons[0];
|
||||||
|
// Re-enable the button if the update failed
|
||||||
|
if (typeof okButton !== 'string') {
|
||||||
|
okButton.htmlAttributes = { disabled: false };
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,6 +45,8 @@ export const translations = {
|
|||||||
newVersion: 'A new version {version} is available. The application will restart to install the update.',
|
newVersion: 'A new version {version} is available. The application will restart to install the update.',
|
||||||
english: 'English',
|
english: 'English',
|
||||||
hungarian: 'Hungarian',
|
hungarian: 'Hungarian',
|
||||||
|
updateDownloading: 'Downloading and installing update...',
|
||||||
|
updateFailed: 'Failed to install the update. Please try again.',
|
||||||
},
|
},
|
||||||
|
|
||||||
hu: {
|
hu: {
|
||||||
@@ -85,9 +87,11 @@ export const translations = {
|
|||||||
sendUmpiresMessage: '{umpire} - {serviceJudge}',
|
sendUmpiresMessage: '{umpire} - {serviceJudge}',
|
||||||
version: 'Verzió',
|
version: 'Verzió',
|
||||||
updateAvailable: 'Új verzió elérhető',
|
updateAvailable: 'Új verzió elérhető',
|
||||||
newVersion: 'Új elérhető verzió: {version} is available. A frissítések telepítése után az alkalmazás újraindul.',
|
newVersion: 'Új elérhető verzió: {version}. A frissítések telepítése után az alkalmazás újraindul.',
|
||||||
english: 'Angol',
|
english: 'Angol',
|
||||||
hungarian: 'Magyar',
|
hungarian: 'Magyar',
|
||||||
|
updateDownloading: 'Frissítés letöltése és telepítése...',
|
||||||
|
updateFailed: 'Frissítés sikertelen. Kérlek próbáld újra.',
|
||||||
}
|
}
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
|
|||||||
@@ -62,7 +62,7 @@
|
|||||||
<ion-col sizeLg="6" pushLg="3">
|
<ion-col sizeLg="6" pushLg="3">
|
||||||
<ion-item>
|
<ion-item>
|
||||||
<ion-label class="ion-text-center"
|
<ion-label class="ion-text-center"
|
||||||
>{{ 'version' | translate }}: 1.0.0</ion-label
|
>{{ 'version' | translate }}: 1.1.2</ion-label
|
||||||
>
|
>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
</ion-col>
|
</ion-col>
|
||||||
|
|||||||
Reference in New Issue
Block a user