2016-09-14 21:57:49 +02:00
|
|
|
<?xml version="1.0" standalone="yes"?>
|
|
|
|
<!DOCTYPE container>
|
|
|
|
<container
|
|
|
|
xmlns="http://www.w3.org/1999/xhtml"
|
|
|
|
xmlns:var="http://www.skyrix.com/od/binding"
|
|
|
|
xmlns:const="http://www.skyrix.com/od/constant"
|
|
|
|
xmlns:label="OGo:label"
|
|
|
|
>
|
|
|
|
<md-dialog flex="50" flex-sm="80" flex-xs="100">
|
|
|
|
|
|
|
|
<md-toolbar>
|
|
|
|
<div class="md-toolbar-tools">
|
|
|
|
<md-icon class="material-icons sg-icon-toolbar-bg">folder</md-icon>
|
|
|
|
<div class="pseudo-input-container md-flex">
|
|
|
|
<label class="pseudo-input-label"><var:string label:value="Manage Subscriptions"/></label>
|
|
|
|
<div class="sg-md-title">{{subscriptions.account.name}}</div>
|
|
|
|
</div>
|
|
|
|
<md-button class="md-icon-button" ng-click="subscriptions.close()">
|
|
|
|
<md-icon aria-label="Close dialog">close</md-icon>
|
|
|
|
</md-button>
|
|
|
|
</div>
|
|
|
|
</md-toolbar>
|
|
|
|
|
|
|
|
<md-dialog-content class="md-dialog-content" layout="column">
|
2016-09-30 18:02:46 +02:00
|
|
|
<div layout="row" layout-align="center center"
|
|
|
|
ng-if="subscriptions.loading">
|
|
|
|
<md-progress-circular class="md-accent"
|
|
|
|
md-mode="indeterminate"><!-- progress --></md-progress-circular>
|
|
|
|
</div>
|
2016-09-14 21:57:49 +02:00
|
|
|
<md-list>
|
2016-09-30 18:02:46 +02:00
|
|
|
<md-list-item ng-repeat="folder in subscriptions.account.$flattenMailboxes({all: true }) | filter:subscriptions.filter"
|
2016-09-14 21:57:49 +02:00
|
|
|
md-item-size="48"
|
2016-09-30 18:02:46 +02:00
|
|
|
ng-hide="subscriptions.metadataForFolder(folder).special">
|
2016-09-14 21:57:49 +02:00
|
|
|
<div ng-class="'sg-child-level-' + folder.level">
|
2016-09-30 18:02:46 +02:00
|
|
|
<md-icon>{{subscriptions.metadataForFolder(folder).icon}}</md-icon>
|
2016-09-14 21:57:49 +02:00
|
|
|
</div>
|
|
|
|
<p class="sg-item-name">
|
2016-09-30 18:02:46 +02:00
|
|
|
{{subscriptions.metadataForFolder(folder).name}}
|
2016-09-14 21:57:49 +02:00
|
|
|
</p>
|
|
|
|
<md-checkbox class="md-secondary"
|
|
|
|
ng-model="folder.subscribed"
|
|
|
|
ng-click="folder.$toggleSubscribe()"
|
|
|
|
ng-true-value="1"
|
|
|
|
ng-false-value="0">
|
|
|
|
</md-checkbox>
|
|
|
|
</md-list-item>
|
|
|
|
</md-list>
|
|
|
|
</md-dialog-content>
|
|
|
|
|
2016-09-30 18:02:46 +02:00
|
|
|
<md-dialog-actions ng-hide="subscriptions.loading">
|
|
|
|
<md-input-container class="md-flex" md-no-float="md-no-float">
|
|
|
|
<md-icon>search</md-icon>
|
|
|
|
<input ng-model="subscriptions.filter.name" type="search" label:placeholder="Filter"/>
|
|
|
|
</md-input-container>
|
2016-09-14 21:57:49 +02:00
|
|
|
</md-dialog-actions>
|
|
|
|
|
|
|
|
</md-dialog>
|
|
|
|
</container>
|