mirror of
https://github.com/samsonjs/samhuri.net-ios.git
synced 2026-03-25 09:25:47 +00:00
disable editing while saving
This commit is contained in:
parent
5b59188055
commit
72d825efc0
1 changed files with 3 additions and 0 deletions
|
|
@ -253,6 +253,8 @@
|
|||
return [PMKPromise promiseWithValue:self.post];
|
||||
}
|
||||
|
||||
self.textView.editable = NO;
|
||||
|
||||
Post *newPost = self.modifiedPost;
|
||||
NSString *path = newPost.path;
|
||||
PMKPromise *savePromise;
|
||||
|
|
@ -288,6 +290,7 @@
|
|||
NSLog(@"Failed to %@ post at path %@: %@ %@", verb, path, error.localizedDescription, error.userInfo);
|
||||
return error;
|
||||
}).finally(^{
|
||||
self.textView.editable = YES;
|
||||
self.savePromise = nil;
|
||||
[items replaceObjectAtIndex:[items indexOfObject:indicatorItem] withObject:saveItem];
|
||||
[self.toolbar setItems:items animated:NO];
|
||||
|
|
|
|||
Loading…
Reference in a new issue