Allow user to change the abbreviation for a specific instance.
This commit is contained in:
parent
9b31a2f28f
commit
50edab43d8
1 changed files with 3 additions and 3 deletions
|
@ -66,7 +66,7 @@ local options = {
|
||||||
args = {
|
args = {
|
||||||
instance = {
|
instance = {
|
||||||
name = 'Add instance to track.',
|
name = 'Add instance to track.',
|
||||||
desc = 'Etner an instance on a seven day lockout that you would like ChoreTracker to track.',
|
desc = 'Enter an instance on a seven day lockout that you would like ChoreTracker to track.',
|
||||||
type = 'input',
|
type = 'input',
|
||||||
set = function(info, value) db.profile.instances[value] = '' end,
|
set = function(info, value) db.profile.instances[value] = '' end,
|
||||||
},
|
},
|
||||||
|
@ -169,8 +169,8 @@ function core:OnEnable()
|
||||||
options.args.instances.args[instance] = {
|
options.args.instances.args[instance] = {
|
||||||
type = 'input',
|
type = 'input',
|
||||||
name = instance,
|
name = instance,
|
||||||
get = function(info) return db.profile.instances[info] end,
|
get = function(info) return db.profile.instances[info[#info]] end,
|
||||||
set = function(info, value) db.profile.instances[info] = value end,
|
set = function(info, value) db.profile.instances[info[#info]] = value end,
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue