Forráskód Böngészése

Fixed button translate issue

0xJacky 3 éve
szülő
commit
b3a5fd91b9

+ 3 - 1
frontend/src/components/StdDataDisplay/StdTable.vue

@@ -183,7 +183,9 @@ watch(params, () => {
         >
             <template #action>
                 <div class="reset-btn">
-                    <a-button @click="reset_search" v-translate>Reset</a-button>
+                    <a-button @click="reset_search">
+                        <translate>Reset</translate>
+                    </a-button>
                 </div>
             </template>
         </std-data-entry>

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 0
frontend/src/language/translations.json


+ 3 - 1
frontend/src/views/other/Error.vue

@@ -8,7 +8,9 @@ const {$gettext} = useGettext()
     <div class="wrapper">
         <h1 class="title">{{ $route.meta.status_code || 404 }}</h1>
         <p>{{ $route.meta.error?.() ?? $gettext('File Not Found') }}</p>
-        <a-button type="primary" v-translate @click="$router.push('/')">Back Home</a-button>
+        <a-button type="primary" @click="$router.push('/')">
+            <translate>Back Home</translate>
+        </a-button>
     </div>
 </template>
 

Nem az összes módosított fájl került megjelenítésre, mert túl sok fájl változott