|
@@ -38,7 +38,9 @@
|
|
|
return '';
|
|
|
});
|
|
|
|
|
|
- checkForVersionUpdates();
|
|
|
+ if (!$config?.offline_mode) {
|
|
|
+ checkForVersionUpdates();
|
|
|
+ }
|
|
|
});
|
|
|
</script>
|
|
|
|
|
@@ -80,14 +82,16 @@
|
|
|
</button>
|
|
|
</div>
|
|
|
|
|
|
- <button
|
|
|
- class=" text-xs px-3 py-1.5 bg-gray-100 hover:bg-gray-200 dark:bg-gray-850 dark:hover:bg-gray-800 transition rounded-lg font-medium"
|
|
|
- on:click={() => {
|
|
|
- checkForVersionUpdates();
|
|
|
- }}
|
|
|
- >
|
|
|
- {$i18n.t('Check for updates')}
|
|
|
- </button>
|
|
|
+ {#if $config?.offline_mode}
|
|
|
+ <button
|
|
|
+ class=" text-xs px-3 py-1.5 bg-gray-100 hover:bg-gray-200 dark:bg-gray-850 dark:hover:bg-gray-800 transition rounded-lg font-medium"
|
|
|
+ on:click={() => {
|
|
|
+ checkForVersionUpdates();
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ {$i18n.t('Check for updates')}
|
|
|
+ </button>
|
|
|
+ {/if}
|
|
|
</div>
|
|
|
</div>
|
|
|
|