Skip to content

Commit

Permalink
enh: rename user-facing text
Browse files Browse the repository at this point in the history
Signed-off-by: Cleopatra Enjeck M <patrathewhiz@gmail.com>
  • Loading branch information
enjeck committed Mar 11, 2024
1 parent f6a5666 commit 1781934
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default {
} else if (currentRoute.path.startsWith('/view/')) {
this.$store.commit('setActiveViewId', parseInt(currentRoute.params.viewId))
this.setPageTitle(this.$store.getters.activeView.title)
} else if (currentRoute.path.startsWith('/context/')) {
} else if (currentRoute.path.startsWith('/application/')) {
this.$store.commit('setActiveContextId', parseInt(currentRoute.params.contextId))
this.setPageTitle(this.$store.getters.activeContext.name)
}
Expand Down
12 changes: 6 additions & 6 deletions src/modules/modals/CreateContext.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div class="modal__content">
<div class="row">
<div class="col-4">
<h2>{{ t('tables', 'Create an Application') }}</h2>
<h2>{{ t('tables', 'Create an application') }}</h2>
</div>
</div>
<div class="row space-T">
Expand All @@ -13,21 +13,21 @@
<div class="col-4" style="display: inline-flex;">
<!-- TODO replace with Context's icon picker -->
<NcEmojiPicker :close-on-select="true" @select="setIcon">
<NcButton type="tertiary" :aria-label="t('tables', 'Select icon for the Application')"
<NcButton type="tertiary" :aria-label="t('tables', 'Select icon for the application')"
:title="t('tables', 'Select icon')" @click.prevent>
{{ icon }}
</NcButton>
</NcEmojiPicker>
<input v-model="title" :class="{ missing: errorTitle }" type="text"
:placeholder="t('tables', 'Title of the new context')" @input="titleChangedManually">
:placeholder="t('tables', 'Title of the new application')" @input="titleChangedManually">
</div>
</div>
<div class="col-4 row space-T">
<div class="col-4">
{{ t('tables', 'Description') }}
</div>
<input v-model="description" type="text"
:placeholder="t('tables', 'Description of the new Application')">
:placeholder="t('tables', 'Description of the new application')">
</div>
<div class="col-4 row space-T">
<div class="col-4">
Expand All @@ -37,8 +37,8 @@
</div>
<div class="row space-R">
<div class="fix-col-4 end">
<NcButton type="primary" :aria-label="t('tables', 'Create Application')" @click="submit">
{{ t('tables', 'Create Application') }}
<NcButton type="primary" :aria-label="t('tables', 'Create application')" @click="submit">
{{ t('tables', 'Create application') }}
</NcButton>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/modules/navigation/partials/NavigationContextItem.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<NcAppNavigationItem v-if="context" data-cy="navigationContextItem" :name="context.name"
:class="{ active: activeContext && context.id === activeContext.id }" :force-menu="true"
:to="'/context/' + parseInt(context.id)">
:to="'/application/' + parseInt(context.id)">
<template #icon>
<template v-if="context.iconName">
{{ context.iconName }}
Expand All @@ -16,7 +16,7 @@
<template #icon>
<PlaylistEdit :size="20" />
</template>
{{ t('tables', 'Edit context') }}
{{ t('tables', 'Edit application') }}
</NcActionButton>
</template>
</NcAppNavigationItem>
Expand Down
4 changes: 2 additions & 2 deletions src/modules/navigation/sections/Navigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@
</ul>
<div v-if="contextsLoading" class="icon-loading" />
<ul v-if="!contextsLoading">
<NcAppNavigationCaption :name="t('tables', 'Contexts')">
<NcAppNavigationCaption :name="t('tables', 'Applications')">
<template #actions>
<NcActionButton :aria-label="t('tables', 'Create context')" icon="icon-add"
<NcActionButton :aria-label="t('tables', 'Create application')" icon="icon-add"
@click.prevent="createContext" />
</template>
</NcAppNavigationCaption>
Expand Down
4 changes: 2 additions & 2 deletions src/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ export default new Router({
component: Startpage,
},
{
path: '/context/:contextId',
path: '/application/:contextId',
component: Context,
name: 'context',
},
{
path: '/context/:contextId/row/:rowId',
path: '/application/:contextId/row/:rowId',
component: Context,
name: 'contextRow',
},
Expand Down

0 comments on commit 1781934

Please sign in to comment.