Merge "Add Create Story Button in Worklists"
This commit is contained in:
commit
fa08257964
@ -19,7 +19,7 @@
|
|||||||
*/
|
*/
|
||||||
angular.module('sb.worklist').controller('WorklistAddItemController',
|
angular.module('sb.worklist').controller('WorklistAddItemController',
|
||||||
function ($log, $scope, $state, worklist, $modalInstance, Story, Task,
|
function ($log, $scope, $state, worklist, $modalInstance, Story, Task,
|
||||||
Criteria, Worklist, $q, valid) {
|
NewStoryService, Criteria, Worklist, $q, valid) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
$scope.worklist = worklist;
|
$scope.worklist = worklist;
|
||||||
@ -30,6 +30,10 @@ angular.module('sb.worklist').controller('WorklistAddItemController',
|
|||||||
$scope.loadingItems = false;
|
$scope.loadingItems = false;
|
||||||
$scope.error = {};
|
$scope.error = {};
|
||||||
|
|
||||||
|
$scope.newStory = function () {
|
||||||
|
NewStoryService.showNewStoryModal();
|
||||||
|
};
|
||||||
|
|
||||||
var unstaged = function(item) {
|
var unstaged = function(item) {
|
||||||
var accept = true;
|
var accept = true;
|
||||||
angular.forEach($scope.items, function(selectedItem) {
|
angular.forEach($scope.items, function(selectedItem) {
|
||||||
|
@ -18,7 +18,8 @@
|
|||||||
* The StoryBoard story submodule handles most activity surrounding the
|
* The StoryBoard story submodule handles most activity surrounding the
|
||||||
* creation and management of stories, their tasks, and comments.
|
* creation and management of stories, their tasks, and comments.
|
||||||
*/
|
*/
|
||||||
angular.module('sb.worklist', ['ui.router', 'sb.services', 'sb.util',
|
angular.module('sb.worklist',
|
||||||
|
['ui.router', 'sb.services', 'sb.util',
|
||||||
'ui.bootstrap'])
|
'ui.bootstrap'])
|
||||||
.config(function ($stateProvider, $urlRouterProvider) {
|
.config(function ($stateProvider, $urlRouterProvider) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
@ -119,6 +119,12 @@
|
|||||||
<div class="btn" ng-show="saving">
|
<div class="btn" ng-show="saving">
|
||||||
<i class="fa fa-spinner fa-lg fa-spin"></i>
|
<i class="fa fa-spinner fa-lg fa-spin"></i>
|
||||||
</div>
|
</div>
|
||||||
|
<button type ="button"
|
||||||
|
class="btn btn-primary pull-left"
|
||||||
|
ng-click="newStory()"
|
||||||
|
ng-disabled="saving">
|
||||||
|
Create Story
|
||||||
|
</button>
|
||||||
<button type="button"
|
<button type="button"
|
||||||
class="btn btn-primary"
|
class="btn btn-primary"
|
||||||
ng-click="save()"
|
ng-click="save()"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user