Skip to content
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.

new: support metadata kind email #286

Merged
merged 1 commit into from
Feb 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion public/javascripts/control.js
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@
kind: { name: 'Kind',
type: 'enum',
description: 'Type of metadata to add.',
options: [ 'Device ID', 'Start Time', 'End Time', 'Today', 'Username', 'Subscriber ID', 'SIM Serial', 'Phone Number', 'Start Geopoint' ],
options: [ 'Device ID', 'Start Time', 'End Time', 'Today', 'Username', 'Email', 'Subscriber ID', 'SIM Serial', 'Phone Number', 'Start Geopoint' ],
value: 'Device ID',
summary: true } },
};
Expand Down
5 changes: 5 additions & 0 deletions public/javascripts/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,11 @@ var dataNS = odkmaker.namespace.load('odkmaker.data');
binding.attrs['jr:preload'] = 'property';
binding.attrs['jr:preloadParams'] = 'username';
}
else if (kind == 'email') {
binding.attrs.type = 'string';
binding.attrs['jr:preload'] = 'property';
binding.attrs['jr:preloadParams'] = 'email';
}
else if (kind == 'subscriber id')
{
binding.attrs.type = 'string';
Expand Down