refactor: Rewrite the composable to a helper method
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<script>
|
||||
import { useGlobalConfig } from 'shared/composables/useGlobalConfig';
|
||||
import { useInstallationName } from 'shared/helpers/installationHelper';
|
||||
|
||||
const {
|
||||
LOGO_THUMBNAIL: logoThumbnail,
|
||||
@@ -14,12 +14,6 @@ export default {
|
||||
default: false,
|
||||
},
|
||||
},
|
||||
setup() {
|
||||
const { useInstallationName } = useGlobalConfig();
|
||||
return {
|
||||
useInstallationName,
|
||||
};
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
globalConfig: {
|
||||
@@ -46,6 +40,9 @@ export default {
|
||||
return '';
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
useInstallationName,
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user