Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AppNavigationNewItem #1638

Merged
merged 1 commit into from
Dec 15, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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