Merge "Clear task title field on saving a new task"
This commit is contained in:
commit
13984cb8de
|
@ -639,6 +639,7 @@ angular.module('sb.story').controller('StoryDetailController',
|
||||||
mapTaskToProject(savedTask);
|
mapTaskToProject(savedTask);
|
||||||
}
|
}
|
||||||
$scope.loadEvents();
|
$scope.loadEvents();
|
||||||
|
task.title = '';
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -305,6 +305,7 @@ angular.module('sb.story').controller('StoryNewController',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
$scope.tasks.push(savedTask);
|
$scope.tasks.push(savedTask);
|
||||||
|
task.title = '';
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
<!--
|
<!--
|
||||||
~ Copyright (c) 2014 Hewlett-Packard Development Company, L.P.
|
~ Copyright (c) 2014 Hewlett-Packard Development Company, L.P.
|
||||||
~ Copyright (c) 2016 Codethink Ltd.
|
~ Copyright (c) 2016 Codethink Ltd.
|
||||||
|
~ Copyright (c) 2019 Adam Coldrick
|
||||||
~
|
~
|
||||||
~ Licensed under the Apache License, Version 2.0 (the "License"); you may
|
~ Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||||
~ not use this file except in compliance with the License. You may obtain
|
~ not use this file except in compliance with the License. You may obtain
|
||||||
|
@ -591,24 +592,19 @@
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<input-inline
|
<input type="text"
|
||||||
auto-focus="true"
|
class="form-control"
|
||||||
ng-model="projects[name].branches[branchName].newTask.title"
|
focus="true"
|
||||||
enabled="isLoggedIn"
|
ng-model="projects[name].branches[branchName].newTask.title"
|
||||||
on-change="updateTaskInline()"
|
maxlength="255"
|
||||||
empty-prompt="Click to assign."
|
placeholder="Enter task name"
|
||||||
empty-disabled-prompt="Not assigned."
|
/>
|
||||||
maxlength="255"
|
|
||||||
as-inline="false"
|
|
||||||
placeholder="Enter task name"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-3">
|
<div class="col-xs-3">
|
||||||
<user-typeahead
|
<user-typeahead
|
||||||
auto-focus="false"
|
auto-focus="false"
|
||||||
ng-model="projects[name].branches[branchName].newTask.assignee_id"
|
ng-model="projects[name].branches[branchName].newTask.assignee_id"
|
||||||
enabled="isLoggedIn"
|
enabled="isLoggedIn"
|
||||||
on-change="updateTaskInline()"
|
|
||||||
empty-prompt="Click to assign."
|
empty-prompt="Click to assign."
|
||||||
empty-disabled-prompt="Not assigned."
|
empty-disabled-prompt="Not assigned."
|
||||||
as-inline="false"
|
as-inline="false"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<!--
|
<!--
|
||||||
~ Copyright (c) 2014 Hewlett-Packard Development Company, L.P.
|
~ Copyright (c) 2014 Hewlett-Packard Development Company, L.P.
|
||||||
~ Copyright (c) 2016 Codethink Ltd.
|
~ Copyright (c) 2016 Codethink Ltd.
|
||||||
~ Copyright (c) 2017 Adam Coldrick
|
~ Copyright (c) 2017, 2019 Adam Coldrick
|
||||||
~
|
~
|
||||||
~ Licensed under the Apache License, Version 2.0 (the "License"); you may
|
~ Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||||
~ not use this file except in compliance with the License. You may obtain
|
~ not use this file except in compliance with the License. You may obtain
|
||||||
|
@ -454,24 +454,19 @@
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<input-inline
|
<input type="text"
|
||||||
auto-focus="true"
|
class="form-control"
|
||||||
ng-model="projects[name].branches[branchName].newTask.title"
|
focus="true"
|
||||||
enabled="isLoggedIn"
|
ng-model="projects[name].branches[branchName].newTask.title"
|
||||||
on-change="updateTaskInline()"
|
maxlength="255"
|
||||||
empty-prompt="Click to assign."
|
placeholder="Enter task name"
|
||||||
empty-disabled-prompt="Not assigned."
|
/>
|
||||||
maxlength="255"
|
|
||||||
as-inline="false"
|
|
||||||
placeholder="Enter task name"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-3">
|
<div class="col-xs-3">
|
||||||
<user-typeahead
|
<user-typeahead
|
||||||
auto-focus="false"
|
auto-focus="false"
|
||||||
ng-model="projects[name].branches[branchName].newTask.assignee_id"
|
ng-model="projects[name].branches[branchName].newTask.assignee_id"
|
||||||
enabled="isLoggedIn"
|
enabled="isLoggedIn"
|
||||||
on-change="updateTaskInline()"
|
|
||||||
empty-prompt="Click to assign."
|
empty-prompt="Click to assign."
|
||||||
empty-disabled-prompt="Not assigned."
|
empty-disabled-prompt="Not assigned."
|
||||||
as-inline="false"
|
as-inline="false"
|
||||||
|
|
|
@ -41,8 +41,9 @@
|
||||||
padding-bottom : 10px;
|
padding-bottom : 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
input-inline, project-typeahead, user-typeahead, task-status-dropdown {
|
.task-title input, input-inline, project-typeahead, user-typeahead, task-status-dropdown {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
width: auto;
|
||||||
|
|
||||||
& .form-group {
|
& .form-group {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
|
|
Loading…
Reference in New Issue