-
Notifications
You must be signed in to change notification settings - Fork 241
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 undo for calendar deletion #148
Conversation
@georgehrke, thanks for your PR! By analyzing the history of the files in this pull request, we identified @tcitworld, @raghunayyar and @tomneedham to be potential reviewers. |
@@ -212,6 +212,16 @@ | |||
box-sizing: border-box; | |||
} | |||
|
|||
#app-navigation .app-navigation-list-item { | |||
max-height: 1000px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jancborchardt Is that a very ugly hack or is that fine?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curios: What does it do? Can't spot the difference.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is needed for the transition. You can't define a transition from height:0 to height:auto
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@georgehrke the question really is, why is all this general styling which could be useful for other apps in the Calendar and not in core/css/apps.css? ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because I need those styles now and not with Nextcloud 11 ;)
But yes, eventually we should unify them in the server and add some developer instructions.
6c6f2dc
to
fa1368f
Compare
1 similar comment
@@ -73,7 +73,7 @@ describe('CalendarListController', function() { | |||
expect($scope.newCalendarColorVal).toBe(''); | |||
}); | |||
|
|||
it ('should delete the selected calendar', function () { | |||
/*it ('should delete the selected calendar', function () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commented Code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The unit tests in this file are really bad unit tests 🙈
I didn't fix the test, because this entire test suite needs to be refactored anyway
Maybe we can add event deletion in the same PR ? |
It's a different feature, so I'd like to implement this in a dedicated PR, but definitely in time for 1.5 ;) |
fa1368f
to
f826cf0
Compare
added a unit test to CalendarListItem test suite |
One test in timezoneservice will fail, but that's unrelated and will be fixed with #149 |
Code looks good. Will test asap. |
} | ||
}, 7500); | ||
|
||
const elm = OC.Notification.showTemporary(t('calendar', 'Undo deletion')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same remark than for events : replace with "Calendar has been deleted. Undo ?"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup. But with the actual calendar name:
Calendarname has been deleted. Undo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe even
Calendar calendarname has been deleted
f5a558e
to
408a599
Compare
i changed the string and rebased, please check again :) |
408a599
to
c349b60
Compare
Rebased. |
This approach is at a dead end thats only gonna end up in a huge chain of ugly hacks. |
implements / fixes #12
please review @nextcloud/calendar @jancborchardt