U4-7551 New Content type editor dialog to select an editor for a property type needs the "Default" and "Reuse" tab functionality changed

Removes unused/non-required methods from data type controller/service.
This commit is contained in:
Shannon
2015-12-16 16:51:12 +01:00
parent 9cc57479da
commit 07533e0145
3 changed files with 14 additions and 100 deletions

View File

@@ -114,28 +114,8 @@ function dataTypeResource($q, $http, umbDataFormatter, umbRequestHelper) {
"GetAll")),
"Failed to retrieve data");
},
getAllUserConfigured: function () {
return umbRequestHelper.resourcePromise(
$http.get(
umbRequestHelper.getApiUrl(
"dataTypeApiBaseUrl",
"GetAllUserConfigured")),
"Failed to retrieve data");
},
getAllUserPropertyEditors: function () {
return umbRequestHelper.resourcePromise(
$http.get(
umbRequestHelper.getApiUrl(
"dataTypeApiBaseUrl",
"GetAllUserPropertyEditors")),
"Failed to retrieve data");
},
getAllTypesAndEditors : function(){
getGroupedPropertyEditors : function(){
return umbRequestHelper.resourcePromise(
$http.get(
umbRequestHelper.getApiUrl(

View File

@@ -21,14 +21,14 @@
{
active: true,
id: 1,
label: "Default",
label: "Available Editors",
alias: "Default",
typesAndEditors: []
},
{
active: false,
id: 2,
label: "Reuse",
label: "Re-use",
alias: "Reuse",
userConfigured: []
}
@@ -41,14 +41,14 @@
function activate() {
getAllUserConfiguredDataTypes();
getAllTypesAndEditors();
getAllDataTypes();
getGroupedPropertyEditors();
}
function getAllTypesAndEditors() {
function getGroupedPropertyEditors() {
dataTypeResource.getAllTypesAndEditors().then(function(data){
dataTypeResource.getGroupedPropertyEditors().then(function(data){
vm.tabs[0].typesAndEditors = data;
vm.tabsLoaded = vm.tabsLoaded + 1;
checkIfTabContentIsLoaded();
@@ -56,9 +56,9 @@
}
function getAllUserConfiguredDataTypes() {
function getAllDataTypes() {
dataTypeResource.getAllUserConfigured().then(function(data){
dataTypeResource.getAll().then(function (data) {
vm.tabs[1].userConfigured = data;
vm.tabsLoaded = vm.tabsLoaded + 1;
checkIfTabContentIsLoaded();