-
diff --git a/src/app/main/content/apps/scrumboard/board/list/list.component.scss b/src/app/main/content/apps/scrumboard/board/list/list.component.scss
index 75cc7d82..f237a726 100644
--- a/src/app/main/content/apps/scrumboard/board/list/list.component.scss
+++ b/src/app/main/content/apps/scrumboard/board/list/list.component.scss
@@ -1,4 +1,6 @@
-:host {
+@import "src/app/core/scss/fuse";
+
+.scrumboard-board-list {
width: 344px;
min-width: 344px;
max-width: 344px;
@@ -19,10 +21,9 @@
.list-header {
height: 64px;
min-height: 64px;
- padding: 0 0 0 16px;
+ padding: 0 8px 0 16px;
border-bottom: 1px solid rgba(0, 0, 0, 0.12);
-
}
.list-content {
@@ -54,4 +55,44 @@
}
}
+
+ &:not(.has-handle):not(.move-disabled),
+ &.has-handle [ngxdraghandle],
+ &.has-handle [ngxDragHandle] {
+ //cursor: move;
+ }
+
+ .ngx-dnd-content {
+ user-select: none;
+ }
+
+ &.gu-mirror {
+ position: fixed !important;
+ margin: 0 !important;
+ z-index: 9999 !important;
+ opacity: 0.8;
+ -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
+ filter: alpha(opacity=80);
+
+ > .list {
+ @include mat-elevation(7);
+ }
+ }
+
+ &.gu-hide {
+ display: none !important;
+ }
+
+ &.gu-unselectable {
+ -webkit-user-select: none !important;
+ -moz-user-select: none !important;
+ -ms-user-select: none !important;
+ user-select: none !important;
+ }
+
+ &.gu-transit {
+ opacity: 0.2;
+ -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=20)";
+ filter: alpha(opacity=20);
+ }
}
diff --git a/src/app/main/content/apps/scrumboard/board/list/list.component.ts b/src/app/main/content/apps/scrumboard/board/list/list.component.ts
index e471340a..49619441 100644
--- a/src/app/main/content/apps/scrumboard/board/list/list.component.ts
+++ b/src/app/main/content/apps/scrumboard/board/list/list.component.ts
@@ -1,16 +1,18 @@
-import { Component, Input, OnDestroy, OnInit, ViewChild } from '@angular/core';
+import { Component, Input, OnDestroy, OnInit, ViewChild, ViewEncapsulation } from '@angular/core';
import { FuseUtils } from '../../../../../../core/fuseUtils';
import { ScrumboardService } from 'app/main/content/apps/scrumboard/scrumboard.service';
import { ActivatedRoute } from '@angular/router';
import { Subscription } from 'rxjs/Subscription';
import { PerfectScrollbarDirective } from 'ngx-perfect-scrollbar';
-import { MdDialog } from '@angular/material';
+import { MdDialog, MdDialogRef } from '@angular/material';
import { FuseScrumboardCardDialogComponent } from '../dialogs/card/card.component';
+import { FuseConfirmDialogComponent } from '../../../../../../core/components/confirm-dialog/confirm-dialog.component';
@Component({
- selector : 'fuse-scrumboard-board-list',
- templateUrl: './list.component.html',
- styleUrls : ['./list.component.scss']
+ selector : 'fuse-scrumboard-board-list',
+ templateUrl : './list.component.html',
+ styleUrls : ['./list.component.scss'],
+ encapsulation: ViewEncapsulation.None
})
export class FuseScrumboardBoardListComponent implements OnInit, OnDestroy
{
@@ -22,6 +24,8 @@ export class FuseScrumboardBoardListComponent implements OnInit, OnDestroy
onBoardChanged: Subscription;
+ confirmDialogRef: MdDialogRef
;
+
constructor(
private route: ActivatedRoute,
private scrumboardService: ScrumboardService,
@@ -79,7 +83,18 @@ export class FuseScrumboardBoardListComponent implements OnInit, OnDestroy
removeList(listId)
{
- this.scrumboardService.removeList(listId);
+ this.confirmDialogRef = this.dialog.open(FuseConfirmDialogComponent, {
+ disableClose: false
+ });
+
+ this.confirmDialogRef.componentInstance.confirmMessage = 'Are you sure you want to delete the list and it\'s all cards?';
+
+ this.confirmDialogRef.afterClosed().subscribe(result => {
+ if ( result )
+ {
+ this.scrumboardService.removeList(listId);
+ }
+ });
}
openCardDialog(cardId)
@@ -97,6 +112,11 @@ export class FuseScrumboardBoardListComponent implements OnInit, OnDestroy
});
}
+ onDrop(ev)
+ {
+ this.scrumboardService.updateBoard();
+ }
+
ngOnDestroy()
{
this.onBoardChanged.unsubscribe();
diff --git a/src/app/main/content/apps/scrumboard/board/sidenavs/settings/settings.component.html b/src/app/main/content/apps/scrumboard/board/sidenavs/settings/settings.component.html
index df4304e2..43dd7966 100644
--- a/src/app/main/content/apps/scrumboard/board/sidenavs/settings/settings.component.html
+++ b/src/app/main/content/apps/scrumboard/board/sidenavs/settings/settings.component.html
@@ -3,7 +3,7 @@
-