-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Creates custom attributes route (#2877)
- Loading branch information
Showing
7 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"ATTRIBUTES_MGMT": { | ||
"HEADER": "Attributes", | ||
"HEADER_BTN_TXT": "Add Attribute" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
app/javascript/dashboard/routes/dashboard/settings/attributes/Index.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<template> | ||
<div class="column content-box"> | ||
<woot-button | ||
color-scheme="success" | ||
class-names="button--fixed-right-top" | ||
icon="ion-android-add-circle" | ||
> | ||
{{ $t('ATTRIBUTES_MGMT.HEADER_BTN_TXT') }} | ||
</woot-button> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default {}; | ||
</script> | ||
|
||
<style></style> |
30 changes: 30 additions & 0 deletions
30
app/javascript/dashboard/routes/dashboard/settings/attributes/attributes.routes.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import SettingsContent from '../Wrapper'; | ||
import AttributesHome from './Index'; | ||
import { frontendURL } from '../../../../helper/URLHelper'; | ||
|
||
export default { | ||
routes: [ | ||
{ | ||
path: frontendURL('accounts/:accountId/settings/attributes'), | ||
component: SettingsContent, | ||
props: { | ||
headerTitle: 'ATTRIBUTES_MGMT.HEADER', | ||
icon: 'ion-code', | ||
showNewButton: false, | ||
}, | ||
children: [ | ||
{ | ||
path: '', | ||
name: 'attributes_wrapper', | ||
redirect: 'list', | ||
}, | ||
{ | ||
path: 'list', | ||
name: 'attributes_list', | ||
component: AttributesHome, | ||
roles: ['administrator'], | ||
}, | ||
], | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters