Skip to content

Commit

Permalink
Add AppNavigationNewItem
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
  • Loading branch information
skjnldsv committed Dec 15, 2020
1 parent c26a183 commit ed10838
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/components/AppNavigationItem/AppNavigationItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,12 @@ Just set the `pinned` prop.

<script>
import { directive as ClickOutside } from 'v-click-outside'
import Actions from '../Actions/Actions'
import ActionButton from '../ActionButton/ActionButton'
import AppNavigationIconCollapsible from './AppNavigationIconCollapsible'
import isMobile from '../../mixins/isMobile'
import InputConfirmCancel from './InputConfirmCancel.vue'
import InputConfirmCancel from './InputConfirmCancel'
export default {
name: 'AppNavigationItem',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@

<script>
import { directive as ClickOutside } from 'v-click-outside'
import isMobile from '../../mixins/isMobile'
import InputConfirmCancel from './InputConfirmCancel.vue'
import InputConfirmCancel from '../AppNavigationItem/InputConfirmCancel'
export default {
name: 'AppNavigationNewItem',
Expand All @@ -77,6 +78,7 @@ export default {
ClickOutside,
},
mixins: [isMobile],
props: {
/**
* The title of the element.
Expand Down Expand Up @@ -124,8 +126,7 @@ export default {
newItemActive: false,
}
},
computed: {
},
methods: {
handleNewItem() {
if (!this.loading) {
Expand All @@ -146,6 +147,7 @@ export default {
},
}
</script>

<style lang="scss">
.app-navigation-new-item__title {
overflow: hidden;
Expand Down
24 changes: 24 additions & 0 deletions src/components/AppNavigationNewItem/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/**
* @copyright Copyright (c) 2018 John Molakvoæ <skjnldsv@protonmail.com>
*
* @author John Molakvoæ <skjnldsv@protonmail.com>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
import AppNavigationNewItem from './AppNavigationNewItem'

export default AppNavigationNewItem
2 changes: 2 additions & 0 deletions src/components/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import AppNavigationCounter from './AppNavigationCounter'
import AppNavigationIconBullet from './AppNavigationIconBullet'
import AppNavigationItem from './AppNavigationItem'
import AppNavigationNew from './AppNavigationNew'
import AppNavigationNewItem from './AppNavigationNewItem'
import AppNavigationSettings from './AppNavigationSettings'
import AppNavigationSpacer from './AppNavigationSpacer'
import AppSettingsDialog from './AppSettingsDialog'
Expand Down Expand Up @@ -83,6 +84,7 @@ export {
AppNavigationIconBullet,
AppNavigationItem,
AppNavigationNew,
AppNavigationNewItem,
AppNavigationSettings,
AppNavigationSpacer,
AppSettingsDialog,
Expand Down
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
*/
import * as NcComponents from './components'

console.info(NcComponents)

function install(Vue) {
Object.values(NcComponents).forEach((component) => {
Vue.component(component.name, component)
Expand Down

0 comments on commit ed10838

Please sign in to comment.