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 archive and delete button to project settings #2034

Merged
merged 9 commits into from
Dec 10, 2018
Merged

Add archive and delete button to project settings #2034

merged 9 commits into from
Dec 10, 2018

Conversation

magicznyleszek
Copy link
Member

Description

Second part of kobocat template changes (see kobotoolbox/kobocat-template#92):

  • Added "Archive"/"Unarchive" button with description to mimic "Accept Submissions" functionality from kobocat template settings
  • Added "Delete project" button to mimic kobocat template settings

New buttons are added on the end of scrollable area (after iframe):
screen shot 2018-10-18 at 12 20 51

Related issues

Part of kobotoolbox/kobocat#488

<bem.FormModal__item m='inline'>
<button
type='button'
className='mdl-button mdl-button--colored mdl-button--danger mdl-button--raised'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Un)archiving isn't really dangerous the way deleting is. Could you change this button to be a different color?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've changed the archive button to orange (because it is in a way more serious than normal button), and unarchive to blue (to match some other place that has unarchive button).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

screenshot 2018-12-10 at 12 14 33

screenshot 2018-12-10 at 12 14 43

jsapp/js/components/modalForms/projectSettings.es6 Outdated Show resolved Hide resolved
jsapp/js/components/modalForms/projectSettings.es6 Outdated Show resolved Hide resolved
@jnm jnm merged commit a2b3b56 into master Dec 10, 2018
@jnm jnm deleted the kobocat-488 branch December 10, 2018 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants