stable

Clone or download

Read-only

feat: Simplify new version modal for empty

This is a follow-up of commit git #tuleap/stable/48fe4ee5514b5efca883b2ba024bc9b733230bef, this one focus on the creation of a new version of an empty document. The type selector is removed from the modal and the user must select the right type of item beforehand, via a dropdown. This dropdown is dispayled as a regular dropdown under a dedicated "+ New version" button in quick look, or as a sub-dropdown when the "+ New version" is in the existing dropdown (e.g tree view, search). Part of story #28273: create OnlyOffice documents Change-Id: I4ca29458018a6dda7dbc793d78cce17ac21e1a95

Modified Files

Name
M plugins/document/scripts/document/components/Folder/DropDown/DropDownMenuTreeView.vue +13 −2 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/DropDownQuickLook.vue +3 −2 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/NewVersion/CreateNewVersionEmptyModal.vue +5 −10 Go to diff View file
A plugins/document/scripts/document/components/Folder/DropDown/NewVersion/NewVersionEmptyDropdown.test.ts +52 −0 Go to diff View file
A plugins/document/scripts/document/components/Folder/DropDown/NewVersion/NewVersionEmptyDropdown.vue +61 −0 Go to diff View file
A plugins/document/scripts/document/components/Folder/DropDown/NewVersion/NewVersionEmptyMenuOptions.test.ts +132 −0 Go to diff View file
A plugins/document/scripts/document/components/Folder/DropDown/NewVersion/NewVersionEmptyMenuOptions.vue +93 −0 Go to diff View file
A plugins/document/scripts/document/components/Folder/DropDown/NewVersion/NewVersionEmptySubmenu.vue +88 −0 Go to diff View file
D plugins/document/scripts/document/components/Folder/DropDown/NewVersion/TypeSelectorForEmptyModal.test.ts +0 −59 Go to diff View file
D plugins/document/scripts/document/components/Folder/DropDown/NewVersion/TypeSelectorForEmptyModal.vue +0 −90 Go to diff View file
M plugins/document/scripts/document/components/Folder/FolderHeader.test.js +16 −2 Go to diff View file
M plugins/document/scripts/document/components/Folder/FolderHeader.vue +19 −7 Go to diff View file
A plugins/document/scripts/document/components/QuickLook/QuickLookEmbedded.test.ts +41 −0 Go to diff View file
R plugins/document/scripts/document/components/QuickLook/QuickLookEmptyOrEmbedded.vue Go to diff View file
R plugins/document/scripts/document/components/QuickLook/QuickLookEmptyOrEmbedded.test.ts Go to diff View file
A plugins/document/scripts/document/components/QuickLook/QuickLookEmpty.vue +40 −0 Go to diff View file
M plugins/document/scripts/document/components/QuickLook/QuickLookGlobal.vue +3 −1 Go to diff View file
A plugins/document/scripts/document/components/QuickLook/__snapshots__/QuickLookEmbedded.test.ts.snap +19 −0 Go to diff View file
A plugins/document/scripts/document/components/QuickLook/__snapshots__/QuickLookEmpty.test.ts.snap +23 −0 Go to diff View file
D plugins/document/scripts/document/components/QuickLook/__snapshots__/QuickLookEmptyOrEmbedded.test.ts.snap +0 −37 Go to diff View file
M plugins/document/scripts/document/helpers/emitter.ts +2 −1 Go to diff View file
M plugins/document/scripts/document/po/fr_FR.po +3 −0 Go to diff View file
M plugins/document/scripts/document/po/pt_BR.po +3 −0 Go to diff View file
M plugins/document/themes/_new-document.scss +0 −95 Go to diff View file