This commit is contained in:
@@ -1541,98 +1541,4 @@ function generateListViewFromEdited(vm) {
|
||||
}
|
||||
|
||||
/////////////END OF FORM//////////////////
|
||||
|
||||
/*
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public const string OpEquality = "=";
|
||||
public const string OpGreaterThan = ">";
|
||||
public const string OpGreaterThanOrEqualTo = ">=";
|
||||
public const string OpLessThan = "<";
|
||||
public const string OpLessThanOrEqualTo = "<=";
|
||||
public const string OpNotEqual = "!=";
|
||||
public const string OpNotLike = "!%";
|
||||
public const string OpStartsWith = "%-";
|
||||
public const string OpEndsWith = "-%";
|
||||
public const string OpContains = "-%-";
|
||||
public const string OpNotContains = "!-%-";
|
||||
|
||||
=-=-=-=-
|
||||
public const string TokenYesterday = "{[yesterday]}";
|
||||
public const string TokenToday = "{[today]}";
|
||||
public const string TokenTomorrow = "{[tomorrow]}";
|
||||
public const string TokenLastWeek = "{[lastweek]}";
|
||||
public const string TokenThisWeek = "{[thisweek]}";
|
||||
public const string TokenNextWeek = "{[nextweek]}";
|
||||
public const string TokenLastMonth = "{[lastmonth]}";
|
||||
public const string TokenThisMonth = "{[thismonth]}";
|
||||
public const string TokenNextMonth = "{[nextmonth]}";
|
||||
public const string TokenFourteenDayWindow = "{[14daywindow]}";
|
||||
public const string TokenPast = "{[past]}";
|
||||
public const string TokenFuture = "{[future]}";
|
||||
public const string TokenLastYear = "{[lastyear]}";
|
||||
public const string TokenThisYear = "{[thisyear]}";
|
||||
public const string TokenInTheLast3Months = "{[last3months]}";
|
||||
public const string TokenInTheLast6Months = "{[last6months]}";
|
||||
public const string TokenInTheLastYear = "{[lastcalendaryear]}";
|
||||
|
||||
//More business time frames
|
||||
|
||||
public const string TokenYearToDate = "{[yeartodate]}";
|
||||
|
||||
public const string TokenPast90Days = "{[past90days]}";
|
||||
public const string TokenPast30Days = "{[past30days]}";
|
||||
public const string TokenPast24Hours = "{[past24hours]}";
|
||||
|
||||
//Months THIS year
|
||||
public const string TokenJanuary = "{[january]}";
|
||||
public const string TokenFebruary = "{[february]}";
|
||||
public const string TokenMarch = "{[march]}";
|
||||
public const string TokenApril = "{[april]}";
|
||||
public const string TokenMay = "{[may]}";
|
||||
public const string TokenJune = "{[june]}";
|
||||
public const string TokenJuly = "{[july]}";
|
||||
public const string TokenAugust = "{[august]}";
|
||||
public const string TokenSeptember = "{[september]}";
|
||||
public const string TokenOctober = "{[october]}";
|
||||
public const string TokenNovember = "{[november]}";
|
||||
public const string TokenDecember = "{[december]}";
|
||||
|
||||
|
||||
|
||||
public enum UiFieldDataType : int
|
||||
{
|
||||
NoType = 0,
|
||||
DateTime = 1,
|
||||
Date = 2,
|
||||
Time = 3,
|
||||
Text = 4,
|
||||
Integer = 5,
|
||||
Bool = 6,
|
||||
Decimal = 7,
|
||||
Currency = 8,
|
||||
Tags = 9,
|
||||
Enum = 10,
|
||||
EmailAddress = 11,
|
||||
HTTP = 12,
|
||||
InternalId = 13
|
||||
|
||||
}
|
||||
*/
|
||||
</script>
|
||||
|
||||
@@ -395,13 +395,11 @@ export default {
|
||||
//enable / disable duplicate button
|
||||
var canDuplicate = !val.dirty && val.valid && !val.readOnly;
|
||||
if (canDuplicate) {
|
||||
console.log("enabling duplicate");
|
||||
window.$gz.eventBus.$emit(
|
||||
"menu-enable-item",
|
||||
FORM_KEY + ":duplicate"
|
||||
);
|
||||
} else {
|
||||
console.log("disabling duplicate");
|
||||
window.$gz.eventBus.$emit(
|
||||
"menu-disable-item",
|
||||
FORM_KEY + ":duplicate"
|
||||
@@ -704,7 +702,6 @@ function generateMenu(vm) {
|
||||
});
|
||||
|
||||
if (vm.rights.change) {
|
||||
console.log("Adding duplicate menu option");
|
||||
menuOptions.menuItems.push({
|
||||
title: window.$gz.locale.get("Duplicate"),
|
||||
icon: "clone",
|
||||
|
||||
Reference in New Issue
Block a user