Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(mounts-manager): add button to unmount all mounts
- Loading branch information
Showing
5 changed files
with
82 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { CombErr, FlowOutNode, AjaxFlowInteralNode } from '../core'; | ||
import { IRcloneServer, PostFlow } from './post-flow'; | ||
|
||
/** | ||
* @description Unmount all active mounts. | ||
* @abstract | ||
* @class MountUnmountAllFlow | ||
*/ | ||
export abstract class MountUnmountAllFlow extends PostFlow<IRcloneServer, FlowOutNode> { | ||
// public prerequest$: Observable<CombErr<IRcloneServer>>; | ||
protected cmd = 'mount/unmountall'; | ||
protected cacheSupport = false; | ||
protected params: unknown = {}; | ||
protected reconstructAjaxResult(x: CombErr<AjaxFlowInteralNode>): CombErr<FlowOutNode> { | ||
if (x[1].length !== 0) return x; | ||
return [{}, []]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters