disable editing while saving

This commit is contained in:
Sami Samhuri 2015-05-03 17:01:40 -07:00
parent 5b59188055
commit 72d825efc0

View file

@ -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];