File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
WooCommerce/Classes/ViewRelated/Orders Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -143,6 +143,18 @@ extension OrderStatusListViewController {
143143 }
144144
145145 @objc func applyButtonTapped( ) {
146+ updateOrderStatus ( )
147+ dismiss ( animated: true , completion: nil )
148+ }
149+ }
150+
151+
152+ /// MARK: - Update the Order status
153+ ///
154+ private extension OrderStatusListViewController {
155+ /// Dispatches an Action to update the order status
156+ ///
157+ private func updateOrderStatus( ) {
146158 guard let newStatus = selectedStatus? . status. rawValue else {
147159 return
148160 }
@@ -161,8 +173,6 @@ extension OrderStatusListViewController {
161173 displayOrderUpdatedNotice {
162174 StoresManager . shared. dispatch ( undo)
163175 }
164-
165- dismiss ( animated: true , completion: nil )
166176 }
167177
168178 /// Returns an Order Update Action that will result in the specified Order Status updated accordingly.
You can’t perform that action at this time.
0 commit comments